﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Threading.Tasks;

namespace Coldairarrow.Business.Base_Manage
{
    public interface IHomeBusiness
    {
        Task<string> SubmitLoginAsync(LoginInputDTO input);
        Task<string> ScanLoginAsync(string qrcode);
        Task ChangePwdAsync(ChangePwdInputDTO input);
        Task<Object> GetPDALogin(LoginInputDTO input);

    }

    public class LoginInputDTO
    {
        [Required]
        public string userName { get; set; }

        [Required]
        public string password { get; set; }
    }

    public class ChangePwdInputDTO
    {
        [Required]
        public string oldPwd { get; set; }

        [Required]
        public string newPwd { get; set; }
    }


    /// <summary>
    /// 物料统计
    /// </summary>
    public class MaterialStatisticsData
    {

        /// <summary>
        /// 物料种数
        /// </summary>
        public double? MaterialTypeNum { get; set; }

        /// <summary>
        /// 库存总数
        /// </summary>
        public double? StockNums { get; set; }
    }

    public class DingLoginInputDTO
    {
        /// <summary>
        /// 钉钉uid
        /// </summary>
        public string userId { get; set; }
        /// <summary>
        /// 钉钉用户名
        /// </summary>
        public string userName { get; set; }
    }

    public class DingBindInputDTO
    {
        /// <summary>
        /// 盛卓系统uid
        /// </summary>
        public string userId { get; set; }
        /// <summary>
        /// 钉钉uid
        /// </summary>
        public string dingId
        { get; set; }
    }
}
